<div id="post">
	<!-- título en H2 -->
	<h2><?=$this->post->title?></h2>
	
	<!-- información del artículo -->
	<div class="info">
		<a href="<?=$this->link('blog','view','id',$this->post->id)?>"><?=$this->post->postdate?></a>
		|
		<?=$this->post->author?>
		|
		<a href="<?=$this->link('blog','view','id',$this->post->id)?>#comments">comentarios</a>

		<?php if (Slog_User::isRol(array('editor','admin'))) : ?>
			|
			<a href="<?=$this->link('admin/blog','edit','id',$this->post->id)?>">editar</a>
		<?php endif; ?>
	</div>
	
	<!-- contenido del artículo -->
	<div class="content">
		<?=$this->post->content?>
	</div>
	
	<!-- agregadores sociales -->
	<div class="foot">
		<a href="http://del.icio.us/post?url=<?=urlencode($this->post->url)?>&amp;title=<?=urlencode($this->post->title)?>">del.icio.us</a>
		|
		<a href="http://meneame.net/submit.php?url<?=urlencode($this->post->url)?>&amp;title=<?=urlencode($this->post->title)?>">menéame</a>
		|
		<a href="http://www.corank.com/submit?url<?=urlencode($this->post->url)?>&amp;title=<?=urlencode($this->post->title)?>&amp;source=w">coRank</a>
	</div>
	
	<!-- listado de comentarios -->
	<?php if ($this->comments) : ?>
	<div class="comments-list">
		<?php foreach ($this->comments as $comment) : ?>
		<div class="comment" id="comment_<?=$comment->id?>">
			<div class="content"><?=$comment->content?></div>
			<div class="info">
				<?php if ($comment->web) : ?>
				<a href="<?=$comment->web?>" rel="nofollow"><?=$comment->name?></a>
				<?php else : ?>
				<?=$comment->name?>
				<?php endif; ?>
				|
				<?=$comment->date?>
			</div>
		</div>
		<?php endforeach; ?>
	</div>
	<?php endif; ?>
	
	<!-- comentarios -->
	<div id="comments">
		<?php if ($this->comment_info->message) : ?>
			<div class="error"><?=$this->comment_info->message?></div>
		<?php endif; ?>
		
		<form action="<?=$this->link('blog', 'comment')?>" method="post">
			<h2>Escribe un comentario</h2>
			<fieldset>
				<legend>Nick</legend>
				<h6>Obligatorio.</h6>
				<input type="text" name="comment_name" value="<?=$this->escape($this->comment_info->name)?>" />
			</fieldset>
			<fieldset>
				<legend>Email</legend>
				<h6>Obligatorio. No se publicará.</h6>
				<input type="text" name="comment_email" value="<?=$this->escape($this->comment_info->email)?>" />
			</fieldset>
			<fieldset>
				<legend>Web</legend>
				<h6>Opcional. No olvides anteponer http:// a tu web.</h6>
				<input type="text" name="comment_web" value="<?=$this->escape($this->comment_info->web)?>" />
			</fieldset>
			<fieldset>
				<legend>Comentario</legend>
				<h6>Tags permitidos: <?=$this->escape($this->allowed_tags)?></h6>
				<textarea rows="8" cols="40" name="comment_content"><?=$this->escape($this->comment_info->content)?></textarea>
			</fieldset>
			<fieldset>
				<input type="submit" value="Enviar" />
				<input type="hidden" name="comment_id_post" value="<?=$this->post->id_post?>" />
			</fieldset>
		</form>
	</div>
</div>
